<template>
  <section class="bg">
    <slot name="header" class="header" />
    <slot name="body" class="body" />
  </section>
</template>

<script>
export default {
  name: "Bg"
};
</script>

<style lang="scss">
.bg {
  width: auto;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  height: auto;
  overflow: hidden;
  // border: 1px solid #ebebeb;
  margin-bottom: 24px;
  box-sizing: border-box;

  .header {
    height: 58px;
    width: inherit;
    position: relative;
    padding: 16px 24px;
    // height: 26px;
    font-size: 18px;
    font-family: PingFangSC, PingFangSC-Medium;
    font-weight: 500;
    text-align: left;
    color: #333333;
    line-height: 26px;

    &::after {
      content: "";
      width: 100%;
      border-bottom: 1px solid #ededed;
      position: absolute;
      bottom: 0;
      left: 0px;
    }
  }
  .body {
    flex: 1;
    padding: 20px 24px;
  }
}
</style>
